package com.bwhx.eruler.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Notice;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.dao.NoticeDao;
import com.bwhx.eruler.service.NoticeService;

/**
 * @Description:
 */
@Service
public class NoticeServiceImpl implements NoticeService {
	@Autowired 
	NoticeDao noticeDao;

	@Override
	public List<Notice> list(Page p) {
		return noticeDao.list(p);
	}


	@Override
	public Integer count(Notice n) {
		return noticeDao.count(n);
	}


	@Override
	public void insert(Notice notice) {
		noticeDao.insert(notice);		
	}


	@Override
	public void del(String nId) {
		noticeDao.del(nId);		
		
	}


	@Override
	public void update(Notice notice) {
		noticeDao.update(notice);		
	}

}
